package com.xiyi.shouxin.view.pojo;

import com.xiyi.shouxin.entity.user.Music;

import lombok.Getter;

@Getter
public class MusicView extends Music {
    public MusicView(Music music) {
        if (music!=null) {
            this.setId(music.getId());
            this.setName(music.getName());
            this.setThumb(music.getThumb());
            this.setUrl(music.getUrl());
            this.setStatus(music.getStatus());
            this.setCreatedAt(music.getCreatedAt());
        }
    }
}
